var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', {
    title: 'Express'
  });
});

router.get('/demo',function (req,res,next) {
  res.render('demo',{
    title : '标题',
    name : '邓进',
    subjects:{
      id:1,
      history:85,
      math:95,
      English:75
    },
    style:{color:'red', padding:'10px 5px'}
  })
})

module.exports = router;
